package com.shop.cereshop.commons.enums;

import lombok.Getter;

/**
 * redis前缀枚举类
 */
@Getter
public enum RedisEnum {
    //话题排行榜
    RECOMMEND_TYPE_TOP(1, "recommend_type_top"),
    //话题详情
    RECOMMEND_TYPE(2, "recommend_type"),
    MEMBER_USER_INFO(3, "MEMBER_USER_INFO"),
    //动态详情
    RECOMMEND_TRENDS(4, "recommend_trends"),
    //话题下的热门动态排行榜
    RECOMMEND_TYPE_HOT_TRENDS(5, "recommend_type_hot_trends"),
    //首页热门动态排行榜
    RECOMMEND_HOT_TRENDS(6, "recommend_hot_trends"),
    //用户位置信息
    USER_LOCATION_KEY(7, "USER:LOCATION"),
    USER_LOCATION_TS_KEY(8, "USER:UPDATETIME:TIMESTAMP"),
    //im鉴权签名
    IM_SIGNATURE(9, "IMSIGNATURE"),
    //用户点赞记录
    USER_LIKE_KEY(10, "USER:LIKE"),
    //用户点赞评论记录
    USER_COMMENT_LIKE_KEY(10, "USER:COMMENTLIKE"),
    //用户收藏
    USER_COLLECT_KEY(11, "USER:COLLECT"),
    //用户评论
    USER_COMMENT_KEY(12, "USER:COMMENT"),
    ;

    RedisEnum(Integer code, String key) {
        this.code = code;
        this.key = key;
    }

    private final Integer code;
    private final String key;
}
